package com.jc.subject.domain.convert;

import com.jc.subject.domain.entity.SubjectCategoryDO;
import com.jc.subject.domain.entity.SubjectInfoDO;
import com.jc.subject.domain.entity.SubjectOptionDO;
import com.jc.subject.infra.basic.entity.SubjectCategory;
import com.jc.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author gongjiawei
 * @Date 2024/6/5 21:29
 * @注释
 */
@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE= Mappers.getMapper(SubjectInfoConverter.class);
    SubjectInfo convertBoToInfo(SubjectInfoDO subjectCategoryDO);

    List<SubjectInfoDO> convertInfoListToDoList(List<SubjectInfo>subjectInfoList);


    SubjectInfoDO convertOptionAndInfoToBo(SubjectOptionDO optionBO, SubjectInfo subjectInfo);
}
